<%@ page session="true"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

<%@page import="java.util.Date;"%>

<html>
    <head>
        <title>Add book</title>
    </head>
<body>
	
	<form:form method="post">
	<form:errors cssClass="error"/></br>
		title <br>
		<form:input path="title"/><form:errors path="title" cssClass="error"/><br>
		
		description <br>
		<form:input path="description"/><form:errors path="description" cssClass="error"/><br>

		tags <br>
		<form:input path="tags"/><form:errors path="tags" cssClass="error"/><br>

		rank <br>
		<form:input path="rank"/><form:errors path="rank" cssClass="error"/><br>
		
		author <br>
		<form:select path="author">
			<form:options items="${authors}" itemValue="id" itemLabel="name"/>
		</form:select>	<form:errors path="author" cssClass="error"/><br>


		<img src="captcha.htm"/>
		captcha <br>
		<form:input path="captcha"/><form:errors path="captcha" cssClass="error"/><br>
		
		
		<input type="submit" value="submit"/><br>
		

	</form:form>
	
</body>
</html>
